<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
   <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/showUser" method="post">
<table border="1" >
    <tr>
    <td>编号</td>
    <td>姓名</td>
    <td>用户名</td>
    <td>密码</td>
    </tr>
    <tr th:each="user : ${users}">
    <td th:text="${user.id}"></td>
    <td th:text="${user.name}"></td>
    <td th:text="${user.username}"></td>
    <td th:text="${user.password}"></td>
    </tr>
</table>
    <a href="addUser">添加用户</a>
</form>
</body>
</html>